package day04;

import java.util.ArrayList;
import java.util.Collection;

public class Demo03 {

	public static void main(String[] args) {
		Person p = new Person("Tom", 21);
		Collection<Person> col = new ArrayList<Person>();
		col.add(new Person("Jerry", 23));
		System.out.println(col);
		System.out.println(p);
		p.age++;
		System.out.println(p);
		System.out.println(col);
	}

}
